Closed
Conversation
- Okta OIDC JWT auth (RS256 JWKS verification) - D1-backed dispensation tracking (email, amount, purpose, tx hash) - Pending/confirmed/failed status flow for safe tx recording - Per-request (10 TEMPO) and daily (50 TEMPO) dispense caps - History endpoint scoped to authenticated user's email - Restricted CORS to admin.tempo.xyz Amp-Thread-ID: https://ampcode.com/threads/T-019c86a8-ae33-7259-afb9-64eeaa5a60e6 Co-authored-by: Amp <amp@ampcode.com>
Bundle Size Report
Chunk changes (>1KB)
Compared against main branch (baseline from 2/4/2026, 5:13:51 PM) |
Cloudflare Deployments
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Internal mainnet faucet for day-to-day employee ops, behind Okta authentication.
Motivation
Employees need a simple way to get TEMPO on mainnet for testing and ops. This faucet tracks who's dispensing funds via Okta email in D1.
Changes
apps/tempo-adminHono app on Cloudflare Workers/api/faucet/historyscoped to the authenticated user's emailadmin.tempo.xyzAPI
/health/api/faucet/dispenserecipient,amount,purpose)/api/faucet/history/api/faucet/balanceSetup
Secrets needed:
OKTA_ISSUER,OKTA_CLIENT_ID,FAUCET_PRIVATE_KEYD1 database
TEMPO-ADMIN-DBneeds to be created and thedatabase_idupdated inwrangler.jsonc.Testing
pnpm checkpasses (biome + types)apps/ogtype errors are unrelatedPrompted by: zygis